<template>
  <div class="sidebar">
    <div class="main-menu">
      <div class="logo"></div>
      <nav class="nav">
        <ul>
          <li class="nav-item">
            <Icon type="ios-home"></Icon>概括
          </li>
          <li class="nav-item active">
            <Icon type="pricetags"></Icon>商品
          </li>
          <li class="nav-item">
            <Icon type="flame"></Icon>营销
          </li>
          <li class="nav-item">
            <Icon type="ios-list"></Icon>订单
          </li>
          <li class="nav-item">
            <Icon type="android-person"></Icon>客户
          </li>
          <li class="nav-item">
            <Icon type="connection-bars"></Icon>统计
          </li>
          <li class="nav-item">
            <Icon type="social-yen"></Icon>资产
          </li>
          <li class="nav-item">
            <Icon type="ios-gear"></Icon>设置
          </li>
        </ul>  
      </nav>
    </div>
    <div class="son-menu">
      <div class="son-title">商品管理</div>
      <nav>
        <ul>
          <li class="active">商品列表</li>
          <li>商品分组</li>
          <li>商品页模版</li>
          <li>商品列表</li>
          <li>商品导入</li>
          <li>商品品牌</li>
        </ul>
      </nav>
    </div>
  </div>
</template>

<script>
export default {
  name: "sidebar",
  components: {},
  data() {
    return {};
  },
  methods: {}
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.2);
  width: 200px;
}
.main-menu {
  position: fixed;
  width: 90px;
  top: 0;
  bottom: 0;
  background: #495060;
  color: #fcfcfc;
}
.logo {
  width: 35px;
  height: 35px;
  background-image: url("../../static/logo.png");
  margin: 14px auto;
  border-radius: 50%;
  border: 1px solid #fff;
  background-size: cover;
  background-color: #fff;
}
.nav {
  width: 90px;
}
.nav-item {
  font-size: 14px;
  height: 36px;
  line-height: 36px;
  margin-bottom: 14px;
  cursor: pointer;
}
.nav li:hover {
  background-color: rgba(0, 0, 0, 0.12);
}
.nav-item i {
  padding-left: 18px;
  padding-right: 8px;
}
.nav li.active {
  background: #f8f8f8;
  color: #333333;
}
.son-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 90px;
  width: 110px;
  background: #fff;
}
.son-title {
  padding-left: 20px;
  font-size: 14px;
  height: 50px;
  line-height: 50px;
  box-sizing: border-box;
  border-bottom: 1px solid #f2f2f2;
}
.son-menu nav {
  padding: 13px 10px;
}
.son-menu nav li {
  font-size: 14px;
  height: 36px;
  line-height: 36px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  padding-left: 10px;
}
.son-menu li.active {
  color: #5cadff;
}
</style>
